import request from '../utils/request';

export const create = query => {
    return request({
        url: 'kanban/misson',
        method: 'post',
        data: query
    });
};
export const update = query => {
    return request({
        url: 'misson',
        method: 'put',
        data: query
    });
};

export const remove = query => {
    return request({
        url: 'misson',
        method: 'post',
        params: query
    });
};
export const complete = query=>{
    return request({
        url:'Misson/Complete',
        method:'put',
        data:query
    });
}
export const getall = query => {
    return request({
        url: 'misson',
        method: 'get',
        params: query
    });
};